package com.wanghai.carwashing.core.service.impl;

import com.wanghai.carwashing.core.bean.Member;
import com.wanghai.carwashing.core.dao.BaseDao;
import com.wanghai.carwashing.core.model.vo.BaseParamVo;
import com.wanghai.carwashing.core.model.vo.Pager;
import com.wanghai.carwashing.core.service.MemberService;
import org.springframework.stereotype.Service;

/**
 *
 * @author 王海
 */
@Service
public class MemberServiceImpl  extends BaseDao<Member> implements MemberService{

    @Override
    public int addMember(Member member) {
       return add(member);
    }

    @Override
    public int delMember(Member member) {
       return delete(member);
    }

    @Override
    public int updateMember(Member member) {
       return update(member);
    }

    @Override
    public Pager<Member> findMembers(BaseParamVo paramVo) {
        return find(Member.class, paramVo);
    }

    @Override
    public long findMembersCount(BaseParamVo paramVo) {
        return findObjectCount(Member.class, paramVo);
    }

    @Override
    public boolean findMemberIsExist(BaseParamVo paramVo) {
        return findObjectIsExist(Member.class, paramVo);
    }
    
}
